﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YuanLiao_CaiGou_JiHua1.aspx.cs" Inherits="syc.Sale.YuanLiao_CaiGou_JiHua1" %>


<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     <script type="text/javascript" language="javascript" src="/common.js"></script>
    
    <div id="wintop" class="wintop"><span lang="zh-cn">原材料、辅助材料采购计划</span></div>
        <asp:Panel ID="Panel1" runat="server" CssClass="panel" >
            <asp:Button ID="Button_New" runat="server" Text="录入" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_New_Click" />
            <asp:Button ID="Button_Calc" runat="server" Text="计算金额" CssClass="button" 
                UseSubmitBehavior="False" onclick="Button_Calc_Click" />
            <asp:Button ID="Button_Finish" runat="server" Text="保 存" CssClass="button" 
                UseSubmitBehavior="False" Width="46px" onclick="Button_Finish_Click" />
            <span style="width:30px;"></span>
            <asp:Button ID="Button2" runat="server" 
                CssClass="button" Text="计划查询" onclick="Button2_Click" />
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" CssClass="panel2">
            <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
        </asp:Panel>
<script>    putBillHead();</script>

        <table border="0" cellpadding="3" 
         style="width:953px; border-collapse: collapse;font-size:14px; padding:20px;">
	        <tr>
		        <td class="bill_title" colspan="4" align="center"  style="width:953px;"><u><span lang="zh-cn">主要原材料、辅助材料</span>采购计划单</u></td>
	        </tr>
	            
	        <tr>
		        <td style="width:24%;height:32px;" width="8">填报单位：<asp:DropDownList 
                        ID="TianBaoDanWei" runat="server" 
                        DataTextField="名称" DataValueField="ID" Width="80px" 
                        DataSourceID="SqlDataSource1">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                        SelectCommand="SELECT [ID], [名称] FROM [生产单位]"></asp:SqlDataSource>
                </td>
		        <td style="width:33%;" align="center">
		            填报日期：
                    <asp:TextBox ID="RiQi" runat="server" CssClass="intxt1" 
                        Width="110px"></asp:TextBox>
                        <img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('RiQi1').value, document.getElementById('RiQi1'));" /></td>
   		           <td style="width:13%;" align="center">
		               NO:<font color="#FF0000"><asp:TextBox ID="DanHao" 
                        runat="server" CssClass="intxt1" ForeColor="Red" Width="120px" Text="00"></asp:TextBox>
                    </font></td>   
                     <td style="width:33%;" align="center">
		               SYC/ZJ-SC-17</td>   
		        
	        </tr>
        </table>

   </div>

     <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse;font-size:14px;" bordercolor="#666666">
        <tr>
	        <td width="150" height="30" align="center">品名（钢级）</td>
	        <td width="140" align="center">规格或型号</td>	       
	        <td width="80" align="center">单位</td>
	        <td width="80" align="center">数量</td>
		    <td width="80" align="center">单价</td>
	        <td width="80" align="center" >金额</td>
	        <td width="80" align="center">供应厂商</td>
            <td width="80" align="center">要求时间</td>
        </tr>
          <tr>
	        <td width="150" height="30"><asp:TextBox ID="R1_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R1_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C4" runat="server" width="80px"   onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"
                    CssClass="blank_center" Text="" ReadOnly="True" Height="22px"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R1_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" 
                    Visible="False">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource9" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                    SelectCommand="SELECT [ID], [名称] FROM [原料供货单位]"></asp:SqlDataSource>
              </td>
	        <td width="80"><asp:TextBox ID="R1_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R1_C8').value, document.getElementById('R1_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add1" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="1"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr> 
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R2_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R2_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R2_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList2" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R2_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R2_C8').value, document.getElementById('R2_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add2" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="2"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R3_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R3_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R3_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList3" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R3_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R3_C8').value, document.getElementById('R3_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add3" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="3"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R4_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R4_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R4_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList4" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R4_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R4_C8').value, document.getElementById('R4_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add4" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="4"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R5_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R5_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R5_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList5" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R5_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R5_C8').value, document.getElementById('R5_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add5" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="5"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R6_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R6_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R6_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList6" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R6_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R6_C8').value, document.getElementById('R6_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add6" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="6"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R7_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R7_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R7_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList7" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R7_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R7_C8').value, document.getElementById('R7_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add7" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="7"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R8_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R8_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R8_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList8" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R8_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R8_C8').value, document.getElementById('R8_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add8" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="8"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R9_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R9_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R9_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList9" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R9_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R9_C8').value, document.getElementById('R9_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add9" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="9"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R10_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R10_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R10_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList10" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R10_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R10_C8').value, document.getElementById('R10_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add10" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="10"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R11_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R11_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R11_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList11" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R11_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R11_C8').value, document.getElementById('R11_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add11" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="11"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R12_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R12_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R12_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList12" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R12_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R12_C8').value, document.getElementById('R12_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add12" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="12"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R13_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R13_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R13_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList13" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R13_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R13_C8').value, document.getElementById('R13_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add13" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="13"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R14_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R14_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R14_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList14" runat="server" 
                    DataSourceID="SqlDataSource9" DataTextField="名称" DataValueField="ID" 
                    Visible="False">
                </asp:DropDownList>
              </td>
	        <td width="80"><asp:TextBox ID="R14_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R14_C8').value, document.getElementById('R14_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add14" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="14"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
           </tr>
            <tr>
	        <td width="150" height="30"><asp:TextBox ID="R15_C1" runat="server" Width="150" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="140"><asp:TextBox ID="R15_C2" runat="server" Width="140" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C3" runat="server" width="80"  CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C4" runat="server" width="80"   CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C5" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onKeyPress="if (event.keyCode!=46 && event.keyCode!=45 && (event.keyCode<48 || event.keyCode>57)) event.returnValue=false"></asp:TextBox></td>
	        <td width="80"><asp:TextBox ID="R15_C6" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True"></asp:TextBox></td>
	        <td width="80">
                <asp:DropDownList ID="DropDownList15" runat="server" 
                                DataSourceID="SqlDataSource9" DataTextField="名称" 
                    DataValueField="ID" Visible="False">
                            </asp:DropDownList>
                            </td>
	        <td width="80"><asp:TextBox ID="R15_C8" runat="server" width="80" CssClass="blank_center" Text="" ReadOnly="True" onclick="makecalendar(document.getElementById('R15_C8').value, document.getElementById('R15_C8'));" Font-Size="12px" ></asp:TextBox></td>
	        <td align="center">
                <asp:Button ID="Button_Add15" runat="server" CssClass="smallbutton" Text="添 加" 
                    CommandArgument="15"  UseSubmitBehavior="False"  oncommand="Button_Add_Command" />
            </td>     
       </table>
        <table border="0" cellpadding="0" style="width:850px;border-collapse: collapse;font-size:14px;margin-top:4px;">
	            <tr>
                    <td width="25%" nowrap>董事长：</td>
                    <td width="25%" nowrap>经理：</td>
                    <td width="25%" nowrap align="right">副经理：</td>
                    <td width="25%" nowrap align="right">单位主管：</td>                  
                </tr>
                <tr>
                   <td colspan=2 >部门主管：</td>
                   
                   <td colspan=2  align="right">填表人：</td>
                </tr>	        
       </table>
 <script>     putBillFoot();</script>
             <asp:Panel ID="Panel_Grid" runat="server" Visible="False">
        <iframe id="gridback" 
                     style="left:133px; top:170px;position:absolute;width:0px;height:0px;z-index: 1; right: 510px;"></iframe>
        <div id="gridframe" class="gridframe" style="left:125px;top:170px;width:650px;">
        
            <div class="gridview">
                <table border="1" width="100%" cellspacing="0" cellpadding="0" 
                    bordercolor="#e5cfab">
	                <tr>
		                <td class="grid-title">
                            <asp:ImageButton ID="ImageButton_Cancel" 
                                ImageUrl="~/Icons/cancel.gif" AlternateText="关闭" ImageAlign="Right" 
                                runat="server" onclick="ImageButton_Cancel_Click" />
                        </td>
		            </tr>
		            <tr>
		                <td class="grid-back">
                           <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" 
                                SelectCommand="SELECT * FROM [原料]"></asp:SqlDataSource>
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" CssClass="grid" DataKeyNames="ID" 
                                DataSourceID="SqlDataSource2" 
                                GridLines="None" ondatabound="GridView1_DataBound" 
                                onpageindexchanged="GridView1_PageIndexChanged" AllowSorting="True" 
                                UseAccessibleHeader="False" PageSize="10">
                                <PagerSettings Visible="False" />
                                <RowStyle CssClass="grid-row-normal" />
                                <Columns>
                                    <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"  
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ReadOnly="True" SortExpression="ID" ItemStyle-Width="80" 
                                        ItemStyle-HorizontalAlign="Center" >
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle HorizontalAlign="Center" CssClass="grid" Width="80px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="品名" HeaderText="品名" SortExpression="品名" 
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ItemStyle-Width="160" >
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle CssClass="grid" Width="160px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="钢级" HeaderText="钢级" SortExpression="钢级" 
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ItemStyle-Width="80" ItemStyle-HorizontalAlign="Center">
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle CssClass="grid" Width="80px"></ItemStyle>
                                    </asp:BoundField>
                                    <asp:BoundField DataField="规格" HeaderText="规格" SortExpression="规格" 
                                        ItemStyle-CssClass="grid" HeaderStyle-CssClass="grid-header"
                                        ItemStyle-Width="160" >
    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle CssClass="grid" Width="160px"></ItemStyle>
                                    </asp:BoundField>


                                    <asp:TemplateField HeaderText="操作" ShowHeader="true" ItemStyle-CssClass="grid" 
                                        HeaderStyle-CssClass="grid-header" ItemStyle-Width="60" 
                                        ItemStyle-HorizontalAlign="Center">
                                        <ItemTemplate>
                                            <asp:Button ID="Button1" runat="server" CommandArgument='<%# Eval("ID")+"\t"+Eval("品名")+"\t"+Eval("钢级")+"\t" +Eval("规格")+"\t" +Eval("单位")+"\t" +Eval("单价") %>'
                                                Text="选择" CssClass="smallbutton" oncommand="Button1_Command" />
                                        </ItemTemplate>

    <HeaderStyle CssClass="grid-header"></HeaderStyle>

    <ItemStyle HorizontalAlign="Center" CssClass="grid" Width="60px"></ItemStyle>
                                    </asp:TemplateField>
                                </Columns>
                              </asp:GridView>
		                </td>
	                </tr>
	                <tr>
		                <td>
		                    <table width="100%">
		                        <tr>
		                            <td class="pagebar">
                                        <asp:Button ID="Button_Pager_First" runat="server" Text="" ToolTip="首页" 
                                            CssClass="pageturn-first-b" onclick="Pager_Click" CommandName="--" />
                                        <asp:Button ID="Button_Pager_Prev" runat="server" Text="" ToolTip="上一页" 
                                            CssClass="pageturn-prev-b" onclick="Pager_Click" CommandName="-" />
                                        <input type="button" class="page-split" />第<asp:TextBox 
                                            ID="TextBox_Pager" runat="server" CssClass="pageturn" 
                                            ontextchanged="Pager_Click"></asp:TextBox>页<input 
                                            type="button" class="page-split" /><asp:Label 
                                            ID="Label_Pages" runat="server"></asp:Label>
                                        <input type="button" class="page-split" />
                                        
                                        <asp:Button ID="Button_Pager_Next" runat="server" Text="" ToolTip="下一页" 
                                            CssClass="pageturn-next-b" onclick="Pager_Click" CommandName="+" />
                                        <asp:Button ID="Button_Pager_Last" runat="server" Text="" ToolTip="末页" 
                                            CssClass="pageturn-last-b" onclick="Pager_Click" CommandName="++" />
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="Label_Total" runat="server" CssClass="grid_totalrows"></asp:Label>
                                    </td>
                                </tr>
                           </table>

		                </td>
	                </tr>
                </table>
                   </div>
        </div>
<script>    putBillFoot();</script>
    <script>
        var gb = document.getElementById("gridback");
        var gf = document.getElementById("gridframe");
        gb.style.width = gf.clientWidth + "px";
        gb.style.height = gf.clientHeight + "px";
        
    </script>
    
    </asp:Panel>

    </form>
      <script>
          var textboxs = document.getElementsByTagName("input");
          for (var i = 0; i < textboxs.length; i++) {
              if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
                  textboxs[i].onfocus = function(e) { this.select(); };
              }
          }
    </script>
</body>
</html>
